<?php

/**
 * Subclass for performing query and update operations on the 'hc_gallery' table.
 *
 * 
 *
 * @package lib.model
 */ 
class GalleryPeer extends BaseGalleryPeer
{
  /**
   * retourne toutes les galleries photos publiés
   * dans l'ordre voulu
   * 
   * @return array of object gallery
   */
  public static function retrievePublishedGallery()
  {
     $c = new Criteria();
     $c->add(GalleryPeer::IS_PUBLISHED, true);
     $c->addAscendingOrderByColumn(GalleryPeer::POSITION);
     
     return self::doSelect($c);
  }
}
